let type = arg => Object.prototype.toString.call(arg).slice(8, -1).toLowerCase();
let Stg = window.localStorage;
let isObj_ARR = (val) => (type(val) === 'object' || type(val) === 'array') || false;
let set = (key, val) => (key && val && Stg.setItem(key, isObj_ARR(val) ? JSON.stringify(val) : String(val))) || false;
let get = key => (key && Stg.getItem(key)) || false;
let remove = key => (key && Stg.removeItem(key)) || false;
export {get, set, remove};
//Storage get set remove
// set('name' , '王麻子');
// get('name');
// remove('name');
